# CMakeList.txt

# 2022-11-17  12:40  by  CYL  @ST
CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
PROJECT (GlobalVariable)

# To enable GDB Tools.You can use 'gdb GlobalVariable' after the cmake and make.
# GDB CLI: help \list \ break x(Line Number) \ run \ print (null,* or & just as C)variable \ continue \ step .
SET(CMAKE_BUILD_TYPE "Debug")
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")

# create a file which named /bin in /build path ,the content is from source's CMakeLists.txt
ADD_SUBDIRECTORY (source bin)
